package com.woniu.microworkorderserver.businessmag.mapper;

import com.woniu.microcommonsserver.entity.InspectItemInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InspectItemMapper {

    /**
     * 新增数据
     * */
    Long save(@Param("p") InspectItemInfoEntity itemInfoEntity);

    /**
     * 根据巡检模板id查询
     * */
    List<InspectItemInfoEntity> findByTemplateId(@Param("id") long id);

    /**
     * 修改数据
     * */
    void update(@Param("p") InspectItemInfoEntity itemInfoEntity);

    /**
     * 根据id删除数据
     * */
    void delete(@Param("fkId")long fkId);
}
